package com.nanbei.eduService.client;

import com.nanbei.commonUntil.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;

@Component
@FeignClient(name = "service-vod",fallback = VodClientHystrix.class)
public interface VodClient {

    @DeleteMapping("/vodService/vod/delVideoToALi/{videoId}")
    public R delVideoToALi(@PathVariable("videoId") String videoId);

    @DeleteMapping("/vodService/vod/delSomeVideos")
    public R delSomeVideos(@RequestParam("videoIds") ArrayList<String> videoIds);
}
